import React from 'react'
import { RouteObject, useRoutes } from 'react-router-dom'
import Discover from '../pages/discover'

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Discover />,
  },
  {
    path: '/discover',
    element: <Discover />,
  },
]

function GetRoutes() {
  const RouteEle = useRoutes(routes)
  return RouteEle
}

export default GetRoutes
